package com.bristua.user.model.condition;

import java.util.ArrayList;
import java.util.List;

public class TUserReturnIntegralFlowExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TUserReturnIntegralFlowExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUserPointIdIsNull() {
            addCriterion("user_point_id is null");
            return (Criteria) this;
        }

        public Criteria andUserPointIdIsNotNull() {
            addCriterion("user_point_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserPointIdEqualTo(String value) {
            addCriterion("user_point_id =", value, "userPointId");
            return (Criteria) this;
        }

        public Criteria andUserPointIdNotEqualTo(String value) {
            addCriterion("user_point_id <>", value, "userPointId");
            return (Criteria) this;
        }

        public Criteria andUserPointIdGreaterThan(String value) {
            addCriterion("user_point_id >", value, "userPointId");
            return (Criteria) this;
        }

        public Criteria andUserPointIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_point_id >=", value, "userPointId");
            return (Criteria) this;
        }

        public Criteria andUserPointIdLessThan(String value) {
            addCriterion("user_point_id <", value, "userPointId");
            return (Criteria) this;
        }

        public Criteria andUserPointIdLessThanOrEqualTo(String value) {
            addCriterion("user_point_id <=", value, "userPointId");
            return (Criteria) this;
        }

        public Criteria andUserPointIdLike(String value) {
            addCriterion("user_point_id like", value, "userPointId");
            return (Criteria) this;
        }

        public Criteria andUserPointIdNotLike(String value) {
            addCriterion("user_point_id not like", value, "userPointId");
            return (Criteria) this;
        }

        public Criteria andUserPointIdIn(List<String> values) {
            addCriterion("user_point_id in", values, "userPointId");
            return (Criteria) this;
        }

        public Criteria andUserPointIdNotIn(List<String> values) {
            addCriterion("user_point_id not in", values, "userPointId");
            return (Criteria) this;
        }

        public Criteria andUserPointIdBetween(String value1, String value2) {
            addCriterion("user_point_id between", value1, value2, "userPointId");
            return (Criteria) this;
        }

        public Criteria andUserPointIdNotBetween(String value1, String value2) {
            addCriterion("user_point_id not between", value1, value2, "userPointId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdIsNull() {
            addCriterion("receive_user_id is null");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdIsNotNull() {
            addCriterion("receive_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdEqualTo(String value) {
            addCriterion("receive_user_id =", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdNotEqualTo(String value) {
            addCriterion("receive_user_id <>", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdGreaterThan(String value) {
            addCriterion("receive_user_id >", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("receive_user_id >=", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdLessThan(String value) {
            addCriterion("receive_user_id <", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdLessThanOrEqualTo(String value) {
            addCriterion("receive_user_id <=", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdLike(String value) {
            addCriterion("receive_user_id like", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdNotLike(String value) {
            addCriterion("receive_user_id not like", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdIn(List<String> values) {
            addCriterion("receive_user_id in", values, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdNotIn(List<String> values) {
            addCriterion("receive_user_id not in", values, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdBetween(String value1, String value2) {
            addCriterion("receive_user_id between", value1, value2, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdNotBetween(String value1, String value2) {
            addCriterion("receive_user_id not between", value1, value2, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameIsNull() {
            addCriterion("consume_user_name is null");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameIsNotNull() {
            addCriterion("consume_user_name is not null");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameEqualTo(String value) {
            addCriterion("consume_user_name =", value, "consumeUserName");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameNotEqualTo(String value) {
            addCriterion("consume_user_name <>", value, "consumeUserName");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameGreaterThan(String value) {
            addCriterion("consume_user_name >", value, "consumeUserName");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("consume_user_name >=", value, "consumeUserName");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameLessThan(String value) {
            addCriterion("consume_user_name <", value, "consumeUserName");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameLessThanOrEqualTo(String value) {
            addCriterion("consume_user_name <=", value, "consumeUserName");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameLike(String value) {
            addCriterion("consume_user_name like", value, "consumeUserName");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameNotLike(String value) {
            addCriterion("consume_user_name not like", value, "consumeUserName");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameIn(List<String> values) {
            addCriterion("consume_user_name in", values, "consumeUserName");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameNotIn(List<String> values) {
            addCriterion("consume_user_name not in", values, "consumeUserName");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameBetween(String value1, String value2) {
            addCriterion("consume_user_name between", value1, value2, "consumeUserName");
            return (Criteria) this;
        }

        public Criteria andConsumeUserNameNotBetween(String value1, String value2) {
            addCriterion("consume_user_name not between", value1, value2, "consumeUserName");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(String value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(String value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(String value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(String value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(String value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(String value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLike(String value) {
            addCriterion("order_id like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotLike(String value) {
            addCriterion("order_id not like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<String> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<String> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(String value1, String value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(String value1, String value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderPriceIsNull() {
            addCriterion("order_price is null");
            return (Criteria) this;
        }

        public Criteria andOrderPriceIsNotNull() {
            addCriterion("order_price is not null");
            return (Criteria) this;
        }

        public Criteria andOrderPriceEqualTo(String value) {
            addCriterion("order_price =", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceNotEqualTo(String value) {
            addCriterion("order_price <>", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceGreaterThan(String value) {
            addCriterion("order_price >", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceGreaterThanOrEqualTo(String value) {
            addCriterion("order_price >=", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceLessThan(String value) {
            addCriterion("order_price <", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceLessThanOrEqualTo(String value) {
            addCriterion("order_price <=", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceLike(String value) {
            addCriterion("order_price like", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceNotLike(String value) {
            addCriterion("order_price not like", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceIn(List<String> values) {
            addCriterion("order_price in", values, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceNotIn(List<String> values) {
            addCriterion("order_price not in", values, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceBetween(String value1, String value2) {
            addCriterion("order_price between", value1, value2, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceNotBetween(String value1, String value2) {
            addCriterion("order_price not between", value1, value2, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralIsNull() {
            addCriterion("return_integral is null");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralIsNotNull() {
            addCriterion("return_integral is not null");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralEqualTo(String value) {
            addCriterion("return_integral =", value, "returnIntegral");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralNotEqualTo(String value) {
            addCriterion("return_integral <>", value, "returnIntegral");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralGreaterThan(String value) {
            addCriterion("return_integral >", value, "returnIntegral");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralGreaterThanOrEqualTo(String value) {
            addCriterion("return_integral >=", value, "returnIntegral");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralLessThan(String value) {
            addCriterion("return_integral <", value, "returnIntegral");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralLessThanOrEqualTo(String value) {
            addCriterion("return_integral <=", value, "returnIntegral");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralLike(String value) {
            addCriterion("return_integral like", value, "returnIntegral");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralNotLike(String value) {
            addCriterion("return_integral not like", value, "returnIntegral");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralIn(List<String> values) {
            addCriterion("return_integral in", values, "returnIntegral");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralNotIn(List<String> values) {
            addCriterion("return_integral not in", values, "returnIntegral");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralBetween(String value1, String value2) {
            addCriterion("return_integral between", value1, value2, "returnIntegral");
            return (Criteria) this;
        }

        public Criteria andReturnIntegralNotBetween(String value1, String value2) {
            addCriterion("return_integral not between", value1, value2, "returnIntegral");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(String value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(String value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(String value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(String value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(String value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLike(String value) {
            addCriterion("create_time like", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotLike(String value) {
            addCriterion("create_time not like", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<String> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<String> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(String value1, String value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(String value1, String value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdIsNull() {
            addCriterion("consume_user_id is null");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdIsNotNull() {
            addCriterion("consume_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdEqualTo(String value) {
            addCriterion("consume_user_id =", value, "consumeUserId");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdNotEqualTo(String value) {
            addCriterion("consume_user_id <>", value, "consumeUserId");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdGreaterThan(String value) {
            addCriterion("consume_user_id >", value, "consumeUserId");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("consume_user_id >=", value, "consumeUserId");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdLessThan(String value) {
            addCriterion("consume_user_id <", value, "consumeUserId");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdLessThanOrEqualTo(String value) {
            addCriterion("consume_user_id <=", value, "consumeUserId");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdLike(String value) {
            addCriterion("consume_user_id like", value, "consumeUserId");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdNotLike(String value) {
            addCriterion("consume_user_id not like", value, "consumeUserId");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdIn(List<String> values) {
            addCriterion("consume_user_id in", values, "consumeUserId");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdNotIn(List<String> values) {
            addCriterion("consume_user_id not in", values, "consumeUserId");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdBetween(String value1, String value2) {
            addCriterion("consume_user_id between", value1, value2, "consumeUserId");
            return (Criteria) this;
        }

        public Criteria andConsumeUserIdNotBetween(String value1, String value2) {
            addCriterion("consume_user_id not between", value1, value2, "consumeUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameIsNull() {
            addCriterion("receive_user_name is null");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameIsNotNull() {
            addCriterion("receive_user_name is not null");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameEqualTo(String value) {
            addCriterion("receive_user_name =", value, "receiveUserName");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameNotEqualTo(String value) {
            addCriterion("receive_user_name <>", value, "receiveUserName");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameGreaterThan(String value) {
            addCriterion("receive_user_name >", value, "receiveUserName");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("receive_user_name >=", value, "receiveUserName");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameLessThan(String value) {
            addCriterion("receive_user_name <", value, "receiveUserName");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameLessThanOrEqualTo(String value) {
            addCriterion("receive_user_name <=", value, "receiveUserName");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameLike(String value) {
            addCriterion("receive_user_name like", value, "receiveUserName");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameNotLike(String value) {
            addCriterion("receive_user_name not like", value, "receiveUserName");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameIn(List<String> values) {
            addCriterion("receive_user_name in", values, "receiveUserName");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameNotIn(List<String> values) {
            addCriterion("receive_user_name not in", values, "receiveUserName");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameBetween(String value1, String value2) {
            addCriterion("receive_user_name between", value1, value2, "receiveUserName");
            return (Criteria) this;
        }

        public Criteria andReceiveUserNameNotBetween(String value1, String value2) {
            addCriterion("receive_user_name not between", value1, value2, "receiveUserName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}